import Vue from 'vue'
import floatBall from './floatBall.vue'
import store from '@/store'


let instance = {
    init: () => {
        const $app = Vue.extend(floatBall)
        const $floatBall = new $app().$mount(document.createElement('div'))
        document.body.appendChild($floatBall.$el)
    }
}

export default {
    ...instance,
    install(vm) {
        vm.prototype.$store = store
        vm.prototype.$floatBall = instance
    }
}
